package com.ly.service.impl;

import com.ly.mapper.ProductionMapper;
import com.ly.pojo.Products;
import com.ly.service.ProductionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductionServiceImpl implements ProductionService {
    @Autowired
    private ProductionMapper productionMapper;
    @Override
    public Products findById(Integer productId) {
        Products products = productionMapper.selectById(productId);
        return products;
    }

    @Override
    public List<Products> findAllProduction() {
        List<Products> productsList = productionMapper.selectList(null);
        return productsList;
    }
}
